<!--<template>-->
<!--  <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px" class="demo-ruleForm">-->
<!--    <el-form-item label="课程编号" prop="id">-->
<!--      <el-input v-model="ruleForm.id" ></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="课程名" prop="name">-->
<!--      <el-input v-model="ruleForm.name"></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="课节数" prop="number">-->
<!--      <el-input v-model="ruleForm.number" ></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="上课时间" prop="time">-->
<!--      <el-input v-model="ruleForm.time" ></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="课程费用" prop="le">-->
<!--      <el-input v-model="ruleForm.le" ></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="上课地址" prop="address">-->
<!--      <el-input v-model="ruleForm.address" ></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="教师号" prop="ID">-->
<!--      <el-input v-model="ruleForm.ID" ></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="课程所需人数" prop="p">-->
<!--      <el-input v-model="ruleForm.p" ></el-input>-->
<!--    </el-form-item>-->
<!--    <el-form-item label="已报名人数" prop="num">-->
<!--      <el-input v-model="ruleForm.num" ></el-input>-->
<!--    </el-form-item>-->

<!--    <el-form-item>-->
<!--      <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>-->
<!--      <el-button @click="resetForm('ruleForm')">重置</el-button>-->
<!--    </el-form-item>-->
<!--  </el-form>-->
<!--</template>-->

<!--<script>-->
<!--export default {-->
<!--  data() {-->
<!--    return {-->
<!--      ruleForm: {-->
<!--        id: '',-->
<!--        name: '',-->
<!--        number: '',-->
<!--        time: '',-->
<!--        le:'',-->
<!--        address:'',-->
<!--        ID:'',-->
<!--        p:'',-->
<!--        num:''-->
<!--      },-->
<!--      rules: {-->
<!--        id:-->
<!--          {required: true, message: '请输入课程编号', trigger: 'blur'},-->

<!--        name:-->
<!--          {required: true, message: '请输入课程名', trigger: 'blur'},-->

<!--        number:-->
<!--          {required: true, message: '请输入课节数', trigger: 'blur'},-->

<!--        time:-->
<!--          {required: true, message: '请输入上课时间', trigger: 'blur'},-->

<!--        le:-->
<!--          {required: true, message: '请输入上课费用', trigger: 'blur'},-->
<!--        address:-->
<!--          {required: true, message: '请输入上课地址', trigger: 'blur'},-->
<!--        ID:-->
<!--          {required: true, message: '请输入教师号', trigger: 'blur'},-->
<!--        p:-->
<!--          {required: true, message: '请输入课程所需人数', trigger: 'blur'},-->
<!--        num:-->
<!--          {required: true, message: '请输入已报名人数', trigger: 'blur'},-->

<!--      },-->
<!--    }-->

<!--  },-->
<!--  /*methods: {-->
<!--    submitForm(formName) {-->
<!--      const _this=this-->
<!--      this.$refs[formName].validate((valid) => {-->
<!--        if (valid) {-->
<!--          console.log(_this.ruleForm)-->
<!--          const params = {-->
<!--            cno:_this.ruleForm.id,-->
<!--            cname:_this.ruleForm.name,-->
<!--            cclasstime:_this.ruleForm.number,-->
<!--            ccycle:_this.ruleForm.time,-->
<!--            camount:_this.ruleForm.le,-->
<!--            caddress:_this.ruleForm.address,-->
<!--            tno:_this.ruleForm.ID,-->
<!--            cneed:_this.ruleForm.p,-->
<!--            cjoin:_this.ruleForm.num-->
<!--          }-->
<!--          this.$axios.post(`/course/insert`,params).then((res) => {-->
<!--            console.log(res);-->
<!--          });-->
<!--          alert('提交成功!');-->
<!--        }-->
<!--        else {-->
<!--          return false;-->
<!--        }-->
<!--      });-->
<!--    },-->
<!--    resetForm(formName) {-->
<!--      this.$refs[formName].resetFields();-->
<!--    }-->
<!--  }*/-->
<!--}-->
<!--</script>-->
